package com.dawn.module.mp.controller.admin.msgtemplatelog.vo;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 模板消息记录新增/修改 Request VO")
@Data
public class MsgTemplateLogSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "27773")
    private Long id;

    @Schema(description = "appid", requiredMode = Schema.RequiredMode.REQUIRED, example = "19607")
    @NotEmpty(message = "appid不能为空")
    private String appid;

    @Schema(description = "accountId")
    private String accountId;

    @Schema(description = "用户openid")
    private String touser;

    @Schema(description = "templateid", example = "24944")
    private String templateId;

    @Schema(description = "消息数据")
    private JSONArray data;

    @Schema(description = "消息链接", example = "https://www.ynzykj.net")
    private String url;

    @Schema(description = "小程序信息")
    private JSONObject miniprogram;

    @Schema(description = "发送时间")
    private LocalDateTime sendTime;

    @Schema(description = "发送结果")
    private String sendResult;

    @Schema(description = "发送状态", example = "2")
    private Boolean status;

    @Schema(description = "模板消息")
    private String message;

}
